{{include file="default/Public/header.html"}}
<div id="pageTop">
  <div class="cate">
      <a href='{{U url="forder/manage"}}' {{if $in.status==''}}class="selected"{{/if}} title="所有未关闭且客户已经确认的订单">所有</a>|
      <a href='{{U url="forder/manage?status=0"}}' {{if isset($in.status)&&$in.status==0}}class="selected"{{/if}} title="所有尚未付款的订单">未付款</a>|
      <a href='{{U url="forder/manage?status=1"}}' {{if $in.status==1}}class="selected"{{/if}} title="所有客户已经付款，待发货的订单">待发货</a>|
      <a href='{{U url="forder/manage?status=2"}}' {{if $in.status==2}}class="selected"{{/if}} title="所有已经发货，等待客户收货的订单">待收货</a>|
      <a href='{{U url="forder/manage?status=9"}}' {{if $in.status==9}}class="selected"{{/if}} title="所有已经完成交易的订单">完成</a>|
      <a href='{{U url="forder/manage?status=-1"}}' {{if $in.status==-9}}class="selected"{{/if}} title="所有已经关闭交易的订单">关闭</a> |
      <a href='{{U url="forder/manage?status=-1"}}' {{if $in.status==-1}}class="selected"{{/if}} title="所有已经生成，但客户尚未确认的订单">未确认</a>
  </div>
  <div class="search">
		<select name='search[field]'>
          <option value='ordernum'>订单号</option>
          <option value='username'>收货人</option>          
        </select>                    
        <select name='search[status]'>
          <option value='0'>未付款</option>
          <option value='1'>已付款</option>          
          <option value='2'>已发货</option>          
          <option value='9'>已完成</option>          
          <option value='-1'>已取消</option>          
        </select>
        <input type="text" name="search[q]" onblur="if (value ==''){value='请输入关键字'}" onfocus="if (value =='请输入关键字'){value =''}" value="请输入关键字"/>
        <button type="submit"></button>
	</div>
</div>
<div id="pageCo">
	<div class="manageForm">
		<table cellpadding="0" cellspacing="0" class="tabcontent">
		<tbody>     
          <tr>
            <th width="150">订单号<span>来自IP: {{$data.ip}}</span></th>
            <td>{{$data.ordernum}}</td>
          </tr>
          {{foreach from=$data.ordername item=v}}
          <tr>
            <th>商品信息<span></span></th>
            <td>
                                名称：<a href="{{$v.pageurl}}" target="_blank" title="打开商品链接">{{$v.name}}</a><br />
                                单价：{{$v.price}}￥<br />
			数量：{{$v.number}}        	
            </td>
          </tr>
          {{/foreach}}
          <tr>
            <th>状态<span></span></th>
            <td>
             {{if $data.status=='0'}}未付款{{/if}}
             {{if $data.status=='1'}}待发货{{/if}}
             {{if $data.status=='2'}}待收货{{/if}}
             {{if $data.status=='9'}}已完成{{/if}}
             {{if $data.status=='-1'}}已关闭{{/if}}
			</td>
          </tr>
          <tr>
            <th>联系人<span></span></th>
            <td>{{$data.linkman}}</td>
          </tr>
          <tr>
            <th>手机号码<span></span></th>
            <td>{{$data.mobile}}</td>
          </tr>
          <tr>
            <th>联系电话<span></span></th>
            <td>{{$data.telephone}}</td>
          </tr>
          <tr>
            <th>邮政编码<span></span></th>
            <td>{{$data.postcode}}</td>
          </tr>
          <tr>
            <th>邮寄地址<span></span></th>
            <td>{{$data.address}}</td>
          </tr>
          <tr>
            <th>客户留言<span></span></th>
            <td>{{$data.message}}</td>
          </tr>
          <tr>
            <th>备注信息<span></span></th>
            <td>{{$data.remark}}</td>
          </tr>              
        </tbody>        
        </table>        
	</div>
</div>
{{include file="default/Public/footer.html"}}